<template>
    <div class="category">
        <h2>{{title}}分类</h2>
        <slot :gameArr="gameArr" :foodUrl='foodUrl' :movieUrl='movieUrl'></slot>
    </div>
</template>

<script>
    export default {
        name: 'Category',
        props: ['title'],
        data() {
            return {
                foodUrl: 'https://s3.ax1x.com/2021/01/16/srJlq0.jpg',
				gameArr: ['英雄联盟手游', '劲舞团', '红色警戒'],
				movieUrl: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'
            }
        },
    }
</script>

<style scoped>
    .category {
        background-color: skyblue;
        width: 200px;
        height: 300px;
    }

    h2 {
        background-color: orange;
        text-align: center;
    }
</style>